//
//  UIView+CornerRad.m
//  Animation
//
//  Created by 陈亚勃 on 16/3/7.
//  Copyright © 2016年 cyb. All rights reserved.
//

#import "UIView+CornerRad.h"

@implementation UIView (CornerRad)

- (CGFloat)corner{
    return self.layer.cornerRadius;
}

- (void)setCorner:(CGFloat)corner{
    self.layer.cornerRadius = corner;
    self.layer.masksToBounds = corner > 0;
}

@end
